
    <#--<li class="_j_goods_li">
        <div class="info">
            <a href="http://www.mafengwo.cn/i/5572235.html" target="_blank">
                <img src="http://b3-q.mafengwo.net/s9/M00/D0/FC/wKgBs1eQOmaACRA-AAA3GcTdIkI593.png?imageMogr2%2Fthumbnail%2F%21298x298r%2Fgravity%2FCenter%2Fcrop%2F%21298x298%2Fquality%2F100"
                     alt="神奇逗猫棒">
                <div class="name">神奇逗猫棒<span>剩余0</span></div>
            &lt;#&ndash;<i class="state1"></i>&ndash;&gt;
            </a>
        </div>
        <div class="buy">
            <span><i class="icon_gold"></i>10000</span>
            <a class="btn_buy disabled _j_not_buy">购买</a>
        </div>
    </li>-->
    <#list props as item>
    <ul>
        <li class="_j_goods_li">
            <div class="info">
                <a href="" target="_blank">
                    <img src="${item.propImg}"
                         alt="补打卡胶囊">
                    <div class="name">${item.prop}<span>剩余${item.total}</span></div>

                </a>
            </div>
            <div class="buy">
                <span><i class="icon_gold"></i>${item.gold}</span>
                <a class="btn_buy" data-id="${item.id}" data-gold="${item.gold}" data-total="${item.total}">购买</a>
            </div>
        </li>
    </ul>
    </#list>
    <#--<li class="coming_soon">
        <div class="info"></div>
    </li>-->
    <#--<#include "../common/page.ftl">-->
<script>
    $(function () {
        $(".btn_buy").click(function () {
            var id=$(this).data("id");
            var gold=$(this).data("gold");
            var total=$(this).data("total");
            console.log(1);
            $.post("/prop/buy", {id: id,gold:gold,total:total}, function (data) {
                if(data.success){
                    alert("购买成功");
                }else{
                    alert(data.msg);
                }
            });
        })
    })
</script>